package com.test.baseGroovy

/**
 * DateTest--GroovyTest
 *
 * @author: Jovi
 *
 * @createTime: 2018-06-14 17:40
 *
 * */
Date oldDate = new Date("05/11/2016")
Date newDate = new Date("05/12/2016")

println oldDate.after(newDate)
println newDate.after(oldDate)

println oldDate.before(newDate)
println newDate.before(oldDate)

println oldDate.compareTo(newDate)
println newDate.compareTo(oldDate)
